<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 500px;
            height: 46px;
            background-color: #0f0;
        }

        .bear {
            background-image: url(https://oss.9ihub.com/test/20231018212339.png);
            background-repeat: no-repeat;
            background-size: 800px 50px;
            background-position: -17px -2px;
            width: 95px;
            height: 46px;
            animation: move01 2s steps(1) infinite ,move02 5s linear infinite;
        }

        @keyframes move01 {

            0%,
            100% {
                background-position: -17px -2px;
            }

            12.5% {
                background-position: -113px -2px;
            }

            25% {
                background-position: -206px -3px;
            }

            37.5% {
                background-position: -302px -7px;
            }

            50% {
                background-position: -403px -9px;
            }

            62.5% {
                background-position: -503px -6px;
            }

            75% {
                background-position: -608px -5px;
            }

            87.5% {
                background-position: -714px -4px;
            }

        }
        @keyframes move02 {
            0%{
                transform: translate(0);
            }
            100%{
                transform: translate(405px);
            }
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="bear"></div>
    </div>
</body>

</html>